package com.zrrd.javaSEPlus._03_classLoader;

/**
 * @author WanJl
 * @version 1.0
 * @title ClassLoader01
 * @description
 * @create 2023/11/12 10:45
 */
public class ClassLoader01 {
    public static void main(String[] args) {
        //获取系统类加载器
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        System.out.println(systemClassLoader);
        //获取系统类加载器的父加载器---平台类加载器
        ClassLoader platformClassLoader = systemClassLoader.getParent();
        System.out.println(platformClassLoader);
        //获取平台类加载器的父加载器---启动类加载器
        ClassLoader bootstrapClassLoader = platformClassLoader.getParent();
        System.out.println(bootstrapClassLoader);
        ClassLoader parent = bootstrapClassLoader.getParent();
        System.out.println(parent);
    }
}
